package allen.ui.help;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * When client use this help windows. Add this listener.
 * */
public class HelpListener implements ActionListener {

	public HelpListener(String filePath) {
		HelpFrame.helpFrame.init(filePath);
	}

	@Override
	public void actionPerformed(ActionEvent arg0) {
		HelpFrame.helpFrame.setVisible(!HelpFrame.helpFrame.isVisible());
	}
}